package com.auxiliary;

import java.util.ArrayList;
import java.util.List;

public class Converter {

	
	public static List<Double> ConvertToGreaterThanZero(List<Double> list)
    {
        double min = 0.000001;
        if (list == null || list.size() == 0)
        	return list;
        
        List<Double> result=new ArrayList<Double> ();
        
        for (Double d: list)
            if (d <min) min = d;
        
        if (min == 0.000001) return list;
        else
        {
        	for (Double d: list)
                result.add(d -min + 1);
        }
        return result;
    }
}
